namespace AceMobile.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class account : DbMigration
    {
        public override void Up()
        {
            RenameColumn(table: "dbo.Accounts", name: "Role_ID", newName: "RoleID");
            AddColumn("dbo.Accounts", "PasswordConfirm", c => c.String());
            AddColumn("dbo.Accounts", "Email", c => c.String(nullable: false));
            AddColumn("dbo.Accounts", "Address", c => c.String(maxLength: 200));
            AddColumn("dbo.Accounts", "SecretQuestion", c => c.String(nullable: false));
        }
        
        public override void Down()
        {
            DropColumn("dbo.Accounts", "SecretQuestion");
            DropColumn("dbo.Accounts", "Address");
            DropColumn("dbo.Accounts", "Email");
            DropColumn("dbo.Accounts", "PasswordConfirm");
            RenameColumn(table: "dbo.Accounts", name: "RoleID", newName: "Role_ID");
        }
    }
}
